|
SAP Convergent Charging
Java and XML APIs (Core) |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.highdeal.pnr.hci.ChargeActivationModel
public class ChargeActivationModel
This Java class represents a charge activation in a subscription (customer master data)
owned by a service provider; This data relates to the activation of charges in the subscribed offer.
Concepts and Terminology
A charge activation is an extensibility concept. The corresponding functional and business concept is the charge visible in a subscription.
A charge activation is contained in a SubscriptionModel and
managed using operations related to subscriptions.
Concepts and Terminology
A charge activation with a dependent role does not have any status.
Accesses are directly managed using the CreateAccessOp,
DeleteAccessOp and
ModifyAccessOp operations.
Behavior of a charge activation status:
neverActivated.active.active, next possible states are suspended,
cancelled, earlyCancelled and expired.suspended, next possible states are active,
cancelled, earlyCancelled and expired.cancelled, earlyCancelled and expired.
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="chargeActivation">
<xs:complexType>
<xs:sequence>
<xs:element ref="counter" minOccurs="0" maxOccurs="unbounded"/>
<xs:element ref="parameterSet" minOccurs="0" maxOccurs="1"/>
<xs:element name="parameterSetChronology" minOccurs="0" maxOccurs="1">
<xs:complexType>
<xs:sequence>
<xs:element ref="chronology" minOccurs="1" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element ref="translationInstanceSet" minOccurs="0" maxOccurs="1"/>
<xs:element name="translationInstanceSetChronology" minOccurs="0" maxOccurs="1">
<xs:complexType>
<xs:sequence>
<xs:element ref="chronology" minOccurs="1" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element ref="tierTableInstanceSet" minOccurs="0" maxOccurs="1"/>
<xs:element name="tierTableInstanceSetChronology" minOccurs="0" maxOccurs="1">
<xs:complexType>
<xs:sequence>
<xs:element ref="chronology" minOccurs="1" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element ref="access" minOccurs="0" maxOccurs="unbounded"/>
<xs:element ref="chargingMapping" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="subCode" type="xs:string" use="required"/>
<xs:attribute name="reference" type="xs:string"/>
<xs:attribute name="description" type="xs:string"/>
<xs:attribute name="currency" type="xs:string" use="optional"/>
<xs:attribute name="effectiveDate" type="xs:dateTime"/>
<xs:attribute name="expirationDate" type="xs:dateTime"/>
<xs:attribute name="lastActivationDate" type="xs:dateTime"/>
<xs:attribute name="cancellationDate" type="xs:dateTime"/>
<xs:attribute name="parentCode" type="xs:string"/>
<xs:attribute name="parentRef" type="xs:string"/>
<xs:attribute name="status" type="CAStatusType"/>
</xs:complexType>
</xs:element><xs:simpleType name="CAStatusType">
<xs:restriction base="xs:string">
<xs:enumeration value="neverActivated"/>
<xs:enumeration value="active"/>
<xs:enumeration value="suspended"/>
<xs:enumeration value="cancelled"/>
<xs:enumeration value="earlyCancelled"/>
<xs:enumeration value="expired"/>
</xs:restriction>
</xs:simpleType>
| Field Summary | |
|---|---|
static int |
ACTIVE
Numeric value for the status of a charge activation which is active. |
static java.lang.String |
ACTIVE_STR
String value for the status of a charge activation which is active. |
static int |
CANCELLED
Numeric value for the status of a charge activation which is cancelled. |
static java.lang.String |
CANCELLED_STR
String value for the status of a charge activation which is cancelled. |
static int |
EARLY_CANCELLED
Numeric value for the status of a charge activation which has been early cancelled. |
static java.lang.String |
EARLY_CANCELLED_STR
String value for the status of a charge activation which has been early cancelled. |
static int |
EXPIRED
Numeric value for the status of a charge activation which is expired. |
static java.lang.String |
EXPIRED_STR
String value for the status of a charge activation which is expired. |
static int |
NEVER_ACTIVATED
Numeric value for the status of a charge activation which has never been activated. |
static java.lang.String |
NEVER_ACTIVATED_STR
String value for the status of a charge activation which has never been activated. |
static int |
NO_STATUS
Numeric value for the status of a charge activation with no status. |
static int |
SUSPENDED
Numeric value for the status of a charge activation which is suspended. |
static java.lang.String |
SUSPENDED_STR
String value for the status of a charge activation which is suspended. |
| Constructor Summary | |
|---|---|
ChargeActivationModel()
Constructs an empty charge activation. |
|
| Method Summary | |
|---|---|
void |
addCharacterData(java.lang.String cData)
Adds character data to the content element. |
void |
addChild(java.lang.String name,
XMLMarshallable child)
Adds a child to the object, the child representing
the marshallable object which must be added to the element. |
java.util.Vector<AccessModel> |
getAccesses()
Deprecated. Deprecated since former Transactive 3.3 |
java.util.Date |
getCancellationDate()
Returns the cancellation date of this charge activation. |
java.util.Vector<ChargingMappingModel> |
getChargingMappings()
Returns ths list of the associated charging mappings. |
java.util.Vector<CounterModel> |
getCounters()
Returns the list of associated counters. |
java.lang.String |
getCurrencyCode()
Returns the currency code of this charge activation. |
java.lang.String |
getDescription()
Returns the description of this charge activation. |
java.util.Date |
getEffectiveDate()
Returns the effective date of this charge activation. |
java.util.Date |
getExpirationDate()
Returns the expiration date of this charge activation. |
java.util.Date |
getLastActivationDate()
Returns the last activation date of this charge activation. |
java.lang.String |
getOfferCode()
Returns the main offer code of the parent charge. |
ParameterSetModel |
getParameterSet()
Returns the parameter set model of this charge activation. |
ChronologyModel |
getParameterSetChronology()
Returns the parameter set chronology of this charge activation. |
java.lang.String |
getParentCode()
Returns the parent code of this charge activation. |
java.lang.String |
getParentRef()
Returns the parent reference of this charge activation. |
java.lang.String |
getReference()
Returns the reference of this charge activation. |
int |
getStatus()
Returns the status of the charge activation. |
static java.lang.String |
getStatusStringFromValue(int status)
|
static int |
getStatusValueFromString(java.lang.String statusString)
|
java.lang.String |
getSubCode()
Returns the subCode of this charge activation. |
TierTableInstanceSetModel |
getTierTableInstanceSet()
Returns the tier table instance set of this charge activation. |
ChronologyModel |
getTierTableInstanceSetChronology()
Returns the tier table instance set chronology of this charge activation. |
TranslationInstanceSetModel |
getTranslationInstanceSet()
Returns the translation instance set of this charge activation. |
ChronologyModel |
getTranslationInstanceSetChronology()
Returns the translation instance set chronology of this charge activation. |
void |
marshal(XMLOutputter output)
Gives an XML representation of this object, including its children. |
void |
setAccesses(java.util.Vector<AccessModel> accesses)
Deprecated. Deprecated since former Transactive 3.3 |
void |
setAttributes(XMLAttributes atts)
Sets the attributes of the XML representation of the element being processed. |
void |
setCancellationDate(java.util.Date cancellationDate)
Sets the cancellation date of this charge activation. |
void |
setChargingMappings(java.util.Vector<ChargingMappingModel> mappings)
Sets the list of charging mappings of this charge activation. |
void |
setCurrencyCode(java.lang.String currencyCode)
Sets the currency code of this charge activation. |
void |
setDescription(java.lang.String description)
Sets the description of this charge activation. |
void |
setEffectiveDate(java.util.Date effectiveDate)
Sets the effective date of this charge activation. |
void |
setExpirationDate(java.util.Date expirationDate)
Sets the expiration date of this charge activation. |
void |
setLastActivationDate(java.util.Date lastActivationDate)
Sets the last activation date of this charge activation. |
void |
setOfferCode(java.lang.String offerCode)
Sets the main offer code of the parent charge. |
void |
setParameterSet(ParameterSetModel parameterSet)
Sets the parameter set model of this charge activation. |
void |
setParentCode(java.lang.String parentCode)
Sets the parent code of this charge activation. |
void |
setParentRef(java.lang.String parentRef)
Sets the parent reference of this charge activation. |
void |
setReference(java.lang.String reference)
Sets the reference of this charge activation. |
void |
setStatus(int status)
Sets the status for the charge activation; Only the SAP CC system can update this information. |
void |
setSubCode(java.lang.String subCode)
Sets the subCode for this charge activation. |
void |
setTierTableInstanceSet(TierTableInstanceSetModel tierTableInstanceSet)
Sets the tier table instance set of this charge activation. |
void |
setTranslationInstanceSet(TranslationInstanceSetModel translationInstanceSet)
Sets the translation instance set of this charge activation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int NO_STATUS
public static final int NEVER_ACTIVATED
public static final int ACTIVE
public static final int SUSPENDED
public static final int CANCELLED
public static final int EARLY_CANCELLED
public static final int EXPIRED
public static final java.lang.String NEVER_ACTIVATED_STR
public static final java.lang.String ACTIVE_STR
public static final java.lang.String SUSPENDED_STR
public static final java.lang.String CANCELLED_STR
public static final java.lang.String EARLY_CANCELLED_STR
public static final java.lang.String EXPIRED_STR
| Constructor Detail |
|---|
public ChargeActivationModel()
| Method Detail |
|---|
public java.lang.String getSubCode()
setSubCode(String)public void setSubCode(java.lang.String subCode)
subCode - The sub-code of the charge activation.getSubCode()public java.lang.String getReference()
setReference(String)public void setReference(java.lang.String reference)
reference - The internal reference of this charge activation.getReference()public java.lang.String getDescription()
setDescription(String)public void setDescription(java.lang.String description)
description - The description of the charge activation.getDescription()public java.lang.String getCurrencyCode()
null if it does not define a currency codesetCurrencyCode(String)public void setCurrencyCode(java.lang.String currencyCode)
currencyCode - the currency code of this charge activation, or null if it does not define a currency codegetCurrencyCode()public java.util.Date getEffectiveDate()
setEffectiveDate(Date)public void setEffectiveDate(java.util.Date effectiveDate)
effectiveDate - The effective date of the charge activation.getEffectiveDate()public java.util.Date getExpirationDate()
setExpirationDate(Date)public void setExpirationDate(java.util.Date expirationDate)
expirationDate - The expiration date of the charge activation.getExpirationDate()public java.util.Date getLastActivationDate()
setLastActivationDate(Date)public void setLastActivationDate(java.util.Date lastActivationDate)
lastActivationDate - The last activation date of the charge activation.getLastActivationDate()public java.util.Date getCancellationDate()
setCancellationDate(Date)public void setCancellationDate(java.util.Date cancellationDate)
cancellationDate - The cancellation date of the charge activation.getCancellationDate()public java.util.Vector<CounterModel> getCounters()
CounterModel.public java.lang.String getParentRef()
public void setParentRef(java.lang.String parentRef)
parentRef - the parent reference of this charge activation.public java.lang.String getParentCode()
public void setParentCode(java.lang.String parentCode)
parentCode - the parent code of this charge activation.public java.lang.String getOfferCode()
setOfferCode(String)public void setOfferCode(java.lang.String offerCode)
offerCode - The code of the offer of the parent charge.getOfferCode()public ParameterSetModel getParameterSet()
public void setParameterSet(ParameterSetModel parameterSet)
parameterSet - the parameter set model of this charge activation.public TranslationInstanceSetModel getTranslationInstanceSet()
public void setTranslationInstanceSet(TranslationInstanceSetModel translationInstanceSet)
translationInstanceSet - the translation instance set of this charge activation.public TierTableInstanceSetModel getTierTableInstanceSet()
public void setTierTableInstanceSet(TierTableInstanceSetModel tierTableInstanceSet)
tierTableInstanceSet - the tier table instance set of this charge activation.public ChronologyModel getParameterSetChronology()
public ChronologyModel getTranslationInstanceSetChronology()
public ChronologyModel getTierTableInstanceSetChronology()
@Deprecated public java.util.Vector<AccessModel> getAccesses()
pnr.compatibility.r32.access is true in the server config file.
AccessModel.@Deprecated public void setAccesses(java.util.Vector<AccessModel> accesses)
pnr.compatibility.r32.access is true in the server config file.
accesses - the list of AccessModels to be setted.public java.util.Vector<ChargingMappingModel> getChargingMappings()
ChargingMappingModel.public void setChargingMappings(java.util.Vector<ChargingMappingModel> mappings)
mappings - The list of ChargingMappingModel to be settedpublic int getStatus()
The status may be:
setStatus(int)public void setStatus(int status)
status - The status of the charge activationgetStatus()public void setAttributes(XMLAttributes atts)
XMLMarshallable
setAttributes in interface XMLMarshallableatts - The XML attributes of the current element
public void addChild(java.lang.String name,
XMLMarshallable child)
XMLMarshallablechild representing
the marshallable object which must be added to the element.
addChild in interface XMLMarshallablename - The name of tag for the childchild - The child to be addedpublic void addCharacterData(java.lang.String cData)
XMLMarshallable
addCharacterData in interface XMLMarshallablecData - The character data to be addedpublic void marshal(XMLOutputter output)
XMLMarshallable
marshal in interface XMLMarshallableoutput - The XML output to marshal the object intopublic static java.lang.String getStatusStringFromValue(int status)
public static int getStatusValueFromString(java.lang.String statusString)
|
Document Published: October 2015 (SAP CC 4.0 SP10 and Later) | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||